package com.haoze.common.model;

import com.fasterxml.jackson.annotation.JsonInclude;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Table(name = "IDR.ORDERS_FILE_INDEX_DATA")
public class OrdersFileIndexDataEntity extends BaseEntity {

    @Id
    @Column(name = "FILE_INDEX_DATA_ID")
    private String fileIndexDataId;

    @Column(name = "EMR_FILE_ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String emrFileId;

    @Column(name = "SORT_ID")
    private Integer sortId;

    @Column(name = "ELEMENT_ID")
    private String elementId;

    @Column(name = "DATA_VALUE")
    private String dataValue;

    @Column(name = "FORMAT_DATA_VALUE")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String formatDataValue;

    @Column(name = "ELEMENT_REMARK")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String elementRemark;

    @Column(name = "PARENT_ELEMENT_ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String parentElementId;

    @Column(name = "QUOTE_DATASET_ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String quoteDatasetId;

    @Column(name = "QUOTE_ELEMENT_ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String quoteElementId;

    @Column(name = "DATA_CODE")
    private String dataCode;

    @Column(name = "PARENT_FILE_INDEX_DATA_ID")
    private String parentFileIndexDataId;

    @Column(name = "BASE_TPL_DETAIL_ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String baseTplDetailId;

    @Column(name = "QUOTE_TPL_DETAIL_ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String quoteTplDetailId;

    @Column(name = "SHOW_IDENTIFICATION")
    private String showIdentification;

    @Column(name = "PRINT_IDENTIFICATION")
    private String printIdentification;

    @Column(name = "DELETE_IDENTIFICATION")
    private String deleteIdentification; // 0-不删除，1-删除

    @Column(name = "ELEMENT_PROPERTY")
    private String elementProperty; // 0-非编辑区 1-编辑区 2-签名区

    @Column(name = "MEDICAL_ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String medicalId; // 医疗术语主键

    @Column(name = "UNIT")
    private String unit; // 护理出入量单位

    @Column(name = "EXTENDED_FIELD")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String extendedField; //病历扩展字段

    @Transient
    private String dataCodeValue;

    public String getDataCodeValue() {
        return dataCodeValue;
    }

    public void setDataCodeValue(String dataCodeValue) {
        this.dataCodeValue = dataCodeValue;
    }

    public String getFileIndexDataId() {
        return fileIndexDataId;
    }

    public void setFileIndexDataId(String fileIndexDataId) {
        this.fileIndexDataId = fileIndexDataId;
    }

    public String getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(String hospitalId) {
        this.hospitalId = hospitalId;
    }

    public String getEmrFileId() {
        return emrFileId;
    }

    public void setEmrFileId(String emrFileId) {
        this.emrFileId = emrFileId;
    }

    public Integer getSortId() {
        return sortId;
    }

    public void setSortId(Integer sortId) {
        this.sortId = sortId;
    }

    public String getElementId() {
        return elementId;
    }

    public void setElementId(String elementId) {
        this.elementId = elementId;
    }

    public String getDataValue() {
        return dataValue;
    }

    public void setDataValue(String dataValue) {
        this.dataValue = dataValue;
    }

    public String getFormatDataValue() {
        return formatDataValue;
    }

    public void setFormatDataValue(String formatDataValue) {
        this.formatDataValue = formatDataValue;
    }

    public String getElementRemark() {
        return elementRemark;
    }

    public void setElementRemark(String elementRemark) {
        this.elementRemark = elementRemark;
    }

    public String getParentElementId() {
        return parentElementId;
    }

    public void setParentElementId(String parentElementId) {
        this.parentElementId = parentElementId;
    }

    public String getQuoteDatasetId() {
        return quoteDatasetId;
    }

    public void setQuoteDatasetId(String quoteDatasetId) {
        this.quoteDatasetId = quoteDatasetId;
    }

    public String getQuoteElementId() {
        return quoteElementId;
    }

    public void setQuoteElementId(String quoteElementId) {
        this.quoteElementId = quoteElementId;
    }

    public String getDataCode() {
        return dataCode;
    }

    public void setDataCode(String dataCode) {
        this.dataCode = dataCode;
    }

    public String getParentFileIndexDataId() {
        return parentFileIndexDataId;
    }

    public void setParentFileIndexDataId(String parentFileIndexDataId) {
        this.parentFileIndexDataId = parentFileIndexDataId;
    }

    public String getBaseTplDetailId() {
        return baseTplDetailId;
    }

    public void setBaseTplDetailId(String baseTplDetailId) {
        this.baseTplDetailId = baseTplDetailId;
    }

    public String getQuoteTplDetailId() {
        return quoteTplDetailId;
    }

    public void setQuoteTplDetailId(String quoteTplDetailId) {
        this.quoteTplDetailId = quoteTplDetailId;
    }

    public String getShowIdentification() {
        return showIdentification;
    }

    public void setShowIdentification(String showIdentification) {
        this.showIdentification = showIdentification;
    }

    public String getPrintIdentification() {
        return printIdentification;
    }

    public void setPrintIdentification(String printIdentification) {
        this.printIdentification = printIdentification;
    }

    public String getDeleteIdentification() {
        return deleteIdentification;
    }

    public void setDeleteIdentification(String deleteIdentification) {
        this.deleteIdentification = deleteIdentification;
    }

    public String getElementProperty() {
        return elementProperty;
    }

    public void setElementProperty(String elementProperty) {
        this.elementProperty = elementProperty;
    }

    public String getMedicalId() {
        return medicalId;
    }

    public void setMedicalId(String medicalId) {
        this.medicalId = medicalId;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getExtendedField() {
        return extendedField;
    }

    public void setExtendedField(String extendedField) {
        this.extendedField = extendedField;
    }
}